import { Provide } from '@midwayjs/core';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { MedicalRecordEntity } from '../entity/record';
import { MedicalRecordValueEntity } from '../entity/record_value';

/**
 * 病历记录
 */
@Provide()
export class MedicalRecordService extends BaseService {
  @InjectEntityModel(MedicalRecordEntity)
  medicalRecordEntity: Repository<MedicalRecordEntity>;

  @InjectEntityModel(MedicalRecordValueEntity)
  medicalRecordValueEntity: Repository<MedicalRecordValueEntity>;
}
